package com.zenithmind.classroom.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 课程章节VO
 * 
 * @author ZenithMind Team
 * @since 2025-01-09
 */
@Data
@Schema(description = "课程章节VO")
public class CourseChapterVO {

    /**
     * 章节ID
     */
    @Schema(description = "章节ID", example = "1234567890")
    private String id;

    /**
     * 课程ID
     */
    @Schema(description = "课程ID", example = "1234567890")
    private String courseId;

    /**
     * 课程标题
     */
    @Schema(description = "课程标题", example = "Java从入门到精通")
    private String courseTitle;

    /**
     * 章节标题
     */
    @Schema(description = "章节标题", example = "第一章：Java基础")
    private String title;

    /**
     * 章节描述
     */
    @Schema(description = "章节描述", example = "本章介绍Java的基础语法和概念")
    private String description;

    /**
     * 章节内容
     */
    @Schema(description = "章节内容")
    private String content;

    /**
     * 排序值
     */
    @Schema(description = "排序值", example = "1")
    private Integer sortOrder;

    /**
     * 状态（0-草稿，1-发布，2-下线）
     */
    @Schema(description = "状态（0-草稿，1-发布，2-下线）", example = "1")
    private Integer status;

    /**
     * 状态名称
     */
    @Schema(description = "状态名称", example = "已发布")
    private String statusName;

    /**
     * 是否免费（0-收费，1-免费）
     */
    @Schema(description = "是否免费（0-收费，1-免费）", example = "1")
    private Integer isFree;

    /**
     * 预计学习时长（分钟）
     */
    @Schema(description = "预计学习时长（分钟）", example = "60")
    private Integer estimatedDuration;

    /**
     * 学习目标
     */
    @Schema(description = "学习目标")
    private String learningObjectives;

    /**
     * 前置知识
     */
    @Schema(description = "前置知识")
    private String prerequisites;

    /**
     * 课时数量
     */
    @Schema(description = "课时数量", example = "5")
    private Integer lessonCount;

    /**
     * 总时长（分钟）
     */
    @Schema(description = "总时长（分钟）", example = "300")
    private Integer totalDuration;

    /**
     * 学习人数
     */
    @Schema(description = "学习人数", example = "1000")
    private Integer studentCount;

    /**
     * 完成人数
     */
    @Schema(description = "完成人数", example = "800")
    private Integer completedCount;

    /**
     * 完成率
     */
    @Schema(description = "完成率", example = "80.0")
    private Double completionRate;

    /**
     * 创建者ID
     */
    @Schema(description = "创建者ID", example = "1234567890")
    private String creatorId;

    /**
     * 创建者名称
     */
    @Schema(description = "创建者名称", example = "张老师")
    private String creatorName;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "2024-01-01 10:00:00")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间", example = "2024-01-01 10:00:00")
    private LocalDateTime updateTime;

    /**
     * 课时列表
     */
    @Schema(description = "课时列表")
    private List<CourseLessonVO> lessons;
}
